package com.atguigu.spzx.cart.client.feign;

import com.atguigu.spzx.cart.client.fallback.CartFallback;
import com.atguigu.spzx.model.common.Result;
import com.atguigu.spzx.model.entity.h5.CartInfo;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * title:
 * author: zgl
 * date: 2024/1/18
 * description：
 */
@FeignClient(value = "service-cart",fallback = CartFallback.class)
public interface CartFeignClient {
    @GetMapping("/api/order/cart/auth/getAllCkecked")
    public Result<List<CartInfo>> getCheckedList();

    @Operation(summary = "删除选中的购物车")
    @GetMapping("/api/order/cart/auth/deleteChecked")
    public Result deleteChecked();
}
